﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI;

namespace WxPayAPI
{
    public class PageResultNotify<ITComponent> : Page
        where ITComponent : IOrderComponent 
    {
        public string OrderCode = "";
        protected override void OnLoad(EventArgs e)
        {
            ResultNotify<ITComponent> resultNotify = new ResultNotify<ITComponent>(this);
            WxPayData res=resultNotify.ProcessNotify();
            OrderCode = resultNotify.ordercode;
            SendMsg();
            Response.Write(res.ToXml());
            Response.End();
           
            base.OnLoad(e);
        }

        protected virtual void SendMsg()
        {
 
        }
    }
}
